package com.example.fill;

import android.graphics.Rect;

import kotlin.random.Random;

public class RandomColumn {

    static int w = ScreenUtils.getScreenWidth();
    static int h = ScreenUtils.getScreenHeight();
    private int num = 3;
    private int randomLocation;

    private int tick = 48;

    private int location = 0;

    private int left;
    private int right;

    public RandomColumn() {
        randomLocation = Random.Default.nextInt(num + 1);
        int i = w / (num + 1);
        left = i * randomLocation;
        right = i * (randomLocation + 1);
    }

    public RandomColumn(int num) {
        this.num = num;
        randomLocation = Random.Default.nextInt(num + 1);
    }

    public int getTick() {
        return tick;
    }

    public RandomColumn setTick(int tick) {
        this.tick = tick;
        return this;
    }

    public int getLocation() {
        return location;
    }

    public RandomColumn setLocation(int location) {
        this.location = location;
        return this;
    }

    public int getLeft() {
        return left;
    }

    public int getRight() {
        return right;
    }
}
